#ifndef PRE_FRACTURED_CUBOID_H
#define PRE_FRACTURED_CUBOID_H


#include "PhysicsBody.h"
#include "FractureBody.h"
#include "Matrix.h"

class GLCuboid;


class PreFracturedCuboid : public PhysicsBody, public FractureBody
{
public:
	PreFracturedCuboid();
	PreFracturedCuboid(const Vec3f& pos, const Vec3f& halfExtents, int numFragments);
	void Draw();
	void Update();
	void Collided(btManifoldPoint& contact);
	~PreFracturedCuboid() {};

private:
	bool m_fractured;
	Vec3f m_halfExtents;
	unsigned int m_numFragments;
	float m_materialDensity;
	GLCuboid* m_pCuboid;
	Matrix m_mat;
};

#endif